<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html">

    <body>

        <ui:composition>
            <h:form id="mapa">
                <div id="post">
                    <h2>Mapa do Site</h2>
                    
                    <h:panelGroup rendered="#{UsuarioController.logado}"> 
                        <h3>Cadastros</h3>
                        <ul>
                            <li><h:commandLink action="#{DisciplinaProfessorController.setPageDisciplinaCad}" value="Disciplina"/></li>
                            <li><h:commandLink action="#{TurmaController.setPageTurmaCad}" value="Turma"/></li>
                            <li><h:commandLink action="#{PageManager.setPageAlunoCad}" value="Aluno"/></li>
                        </ul>
                        <h3>Questões</h3>
                        <ul>
                            <li><h:commandLink action="#{QuestaoController.setPageQuestaoCad}" value="Nova Questão"/></li>
                            <li><h:commandLink action="#{PageManager.setPageWorkspacePesquisa}">Pesquisar</h:commandLink></li>
                            <li><h:commandLink action="#{PageManager.setPageWorkspaceList}">Lista Pessoal (<h:outputText value="#{QuestaoProfessorController.numeroQuestoes}" />)</h:commandLink></li>
                            <li><h:commandLink action="#{PageManager.setPageQuestaoList}">Listar Geral (<h:outputText value="#{QuestaoController.numeroQuestoes}" />)</h:commandLink></li>
                        </ul>
                        <h3>Listas</h3>
                        <ul>
                            <li><h:commandLink action="#{ListaController.setPageListaCad}" value="Nova Lista" /></li>
                            <!--                                <li>Pesquisar</li>-->
                            <li><h:commandLink action="#{PageManager.setPageListaList}" value="Listas" /></li>
                            <li><h:commandLink action="#{PageManager.setPageListaList}" value="Avaliações" /></li>
                            <li><h:commandLink action="#{PageManager.setPageListaList}" value="Listar Todas" /></li>
                            <!--                                <li>Tags</li>-->
                            <li><h:commandLink action="#{PageManager.setPageListaAlunoList}" value="Notas" /></li>
                        </ul>
                        <h3>Relatórios</h3>
                        <ul>
                            <li><h:commandLink action="#{DisciplinaProfessorController.setPageDisciplinaCad}" value="Desempenho por Lista"/></li>
                            <li><h:commandLink action="#{TurmaController.setPageTurmaCad}" value="Desempenho Individual"/></li>
                        </ul>
                    </h:panelGroup>
                </div>
            </h:form>
        </ui:composition>

    </body>
</html>
